<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
            
        }
        .box{
            height: 300px;
            width: 800px;
            background-color: white;
            
            margin: auto;
        }
        .c1{
            height: 230px;
            width: 230px;
            text-align: center;
            margin-left: 26px;
            float: left;
            background-color: #fff;
            position: relative;
            top: 0;
            overflow: hidden;/* 让溢出的内容隐藏起来。意思是让下方的橙色方形先躲起来 */
            transition: all 0.5s;/* 从最初到鼠标悬停时的过渡 */
        }
        .c1{
            margin-top: 20px;
        }
        .c1 .orange{

            position: absolute;
            left: 0px;
            bottom: -100px;
            width: 100%;
            height: 80px;
            background-color: orangered;
            transition: all 0.5s;
        }
        .c1:hover{
            top: -6px;
            box-shadow: 0 0 10px pink;
        }
        .c1:hover .orange{
            bottom: 0;
        }
        
    </style>
</head>
<body>
    <div class="box">
        <div class="c1">
            <img src="./1.png" alt="">
        </div>

        <div class="c1">
            <img src="./2.png" alt="">
            <span class="orange"></span>
        </div>

        <div class="c1"> <img src="./3.jpg" alt="">
            <span class="orange"></span>
        </div>

    </div>
   
</body>
</html>